From: Carlos Garnacho Date: Thu, 14 Apr 2022 18:49:00 +0000 (+0200) Subject: keyboard: Drop needless signal from OSK Key object X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~461^2^2~27 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5b950d7db155376d0f3f8c5f49f2b9de1701d288;p=gnome-shell.git keyboard: Drop needless signal from OSK Key object The 'pressed' signal will be emitted in the same circumstances now, there's no need for a separate 'activated' signal. Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index b51eeb413..44426b225 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -297,7 +297,6 @@ var LanguageSelectionPopup = class extends PopupMenu.PopupMenu { var Key = GObject.registerClass({ Signals: { - 'activated': {}, 'long-press': {}, 'pressed': {}, 'released': {}, @@ -356,8 +355,6 @@ var Key = GObject.registerClass({ } _press(button) { - this.emit('activated'); - if (button === this.keyButton) { this._pressTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT, KEY_LONG_PRESS_TIME, @@ -907,7 +904,7 @@ var EmojiPager = GObject.registerClass({ key.keyButton.set_button_mask(0); - key.connect('activated', () => { + key.connect('pressed', () => { this._currentKey = key; }); key.connect('long-press', () => {